﻿<UserControl x:Class="FreeGoo.WpfDemo.GameControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="794" Width="1002" Loaded="Window_Loaded" MouseLeftButtonDown="Canvas_MouseDown">
    <ScrollViewer Margin="0,0,0,0" Name="ScrollViewer" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" BorderBrush="AliceBlue" MouseMove="Canvas_MouseMove" MouseLeftButtonDown="Canvas_MouseDown" MouseLeftButtonUp="Canvas_MouseUp" SizeChanged="ScrollViewer_SizeChanged" Background="AliceBlue">
        <Canvas Width="255" Height="255" x:Name="RenderTarget">
            <!-- RenderTransformOrigin="0.5,0.5"-->
            <Canvas.RenderTransform>
                <ScaleTransform x:Name="CanvasScaleTransform" ScaleX="2" ScaleY="2"/>
            </Canvas.RenderTransform>
            <Rectangle x:Name="TopBar" Canvas.Left="0" Canvas.Top="0" Fill="Brown" Height="5" Width="250" Opacity="0.2"></Rectangle>
            <Rectangle x:Name="LeftBar" Canvas.Left="0" Canvas.Top="0" Fill="Brown"  Height="250" Width="5" Opacity="0.2"></Rectangle>
            <Rectangle x:Name="BottomBar" Canvas.Left="0" Canvas.Top="250" Fill="Brown" Height="5" Width="250" Opacity="0.2"></Rectangle>
            <Rectangle x:Name="RightBar" Canvas.Left="250" Canvas.Top="0" Fill="Brown" Height="250" Width="5" Opacity="0.2"></Rectangle>
        </Canvas >
    </ScrollViewer>
</UserControl>
